package com.shycloud.mido.opter;

import com.shycloud.mido.common.core.util.SpringContextHolder;
import com.shycloud.mido.common.security.annotation.EnableShyResourceServer;
import com.shycloud.mido.common.security.annotation.EnableShyFeignClients;
import com.shycloud.mido.common.swagger.annotation.EnableShySwagger2;
import com.shycloud.mido.opter.config.PropertiesTestConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author npc
 * @date 2018/07/29
 * 代码生成模块
 */
@EnableShySwagger2
@SpringCloudApplication
@EnableFeignClients(basePackages = {"com.happy.zebra","com.shycloud.mido"})
@EnableShyResourceServer
public class ShyOpterApplication {

	public static void main(String[] args) {
		SpringApplication.run(ShyOpterApplication.class, args);
//		log.info("test_param=======" + ((PropertiesTestConfig)SpringContextHolder.getBean("propertiesTestConfig")).getHost());
	}

}
